package com.power.sifa.ocr.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.net.model.EqproFormTreeNode;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

public interface OcrBaiduFeign {

    /**
     * Ocr文字识别
     *
     * @param url
     * @return
     */
    @PostMapping("/ocr/readText")
    ResponseDTO OcrBaidu(@RequestParam String url);

    @PostMapping("/ocr/readTextByFile")
    ResponseDTO OcrBaidu(@RequestParam("file") MultipartFile file);

    @GetMapping("/ocr/readTextByAttachmentid")
    ResponseDTO OcrByAttachmentid(@RequestParam("attachmentid") String attachmentid);

}
